package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单管理对象 work_order
 * 
 * @author admin
 * @date 2023-06-02
 */
public class WorkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单编码 */
    private Long code;

    /** 工单名称 */
    @Excel(name = "工单名称")
    private String name;

    /** 工单内容 */
    @Excel(name = "工单内容")
    private String contents;

    /** 是否派单 */
    @Excel(name = "是否派单")
    private Long dispatch;

    /** 派单人  */
    @Excel(name = "派单人 ")
    private String user;

    /** 是否回复 */
    @Excel(name = "是否回复")
    private Long reply;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String content;

    /** 回复图片  */
    @Excel(name = "回复图片 ")
    private String image;

    /** 创建时间  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;
    /** 创建时间  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String createdUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateUser;

    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContents(String contents) 
    {
        this.contents = contents;
    }

    public String getContents() 
    {
        return contents;
    }
    public void setDispatch(Long dispatch) 
    {
        this.dispatch = dispatch;
    }

    public Long getDispatch() 
    {
        return dispatch;
    }
    public void setUser(String user) 
    {
        this.user = user;
    }

    public String getUser() 
    {
        return user;
    }
    public void setReply(Long reply) 
    {
        this.reply = reply;
    }

    public Long getReply() 
    {
        return reply;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setCreatedUser(String createdUser)
    {
        this.createdUser = createdUser;
    }

    public String getCreatedUser() 
    {
        return createdUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("name", getName())
            .append("contents", getContents())
            .append("dispatch", getDispatch())
            .append("user", getUser())
            .append("reply", getReply())
            .append("content", getContent())
            .append("image", getImage())
            .append("createdTime", getCreatedTime())
            .append("updateTime", getUpdateTime())
            .append("createdUser", getCreatedUser())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
